package dto

import "tuowei.com/common/dto"

type GetProvinceByCityReq struct {
	CityName string `json:"city_name" form:"city_name"`
}

type SysRegionReq struct {
	dto.Pagination `search:"-"`
	ParentId       int    `form:"parent_id" search:"type:exact;column:parent_id;table:sys_region"`
	Name           string `form:"name" search:"type:contains;column:name;table:sys_region" comment:"根据省份名称搜索关键字"`
}

func (m *SysRegionReq) GetNeedSearch() interface{} {
	return *m
}
